home *** CD-ROM | disk | FTP | other *** search
- Path: laurel.yorku.ca!yu114405
- From: yu114405@yorku.ca (Naftali Sturm)
- Newsgroups: comp.lang.c
- Subject: Help with sin() - big problem
- Date: 5 Mar 1996 17:50:10 GMT
- Organization: York University
- Message-ID: <4hhusi$49i@sunburst.ccs.yorku.ca>
- NNTP-Posting-Host: laurel.yorku.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- I have a big problem.
- I am making a math and trigonometry program which, one of its functions
- is to compute the sine of a number.
- The way I did it was.
- result = sin(numb);
-
- result and num are both float's.
- The problem is that when numb is 1.0, the
- program gives me .84147 , and when numb is 45.0
- the program gives me .85090, and each number is a different result.
- However I took a look at my sine table in my trigonometry book, and
- it says the sine of 1 is .018, the sine of 45 is .707, and
- different results than what my program said.
- Why?
-
- thank(you); for(your=help;;) { }
-
-
-